package com.bootx.controller.api.admin;

import com.bootx.common.Result;
import com.bootx.controller.BaseController;
import com.bootx.entity.SiteConfig;
import com.bootx.service.SiteConfigService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author black
 */
@RestController
@RequestMapping("/api/admin/siteConfig")
public class SiteConfigController extends BaseController {

    @Resource
    private SiteConfigService siteConfigService;

    @PostMapping("/get")
    public Result get(){
        SiteConfig siteConfig = siteConfigService.find(1L);
        return Result.success(siteConfig);
    }

}
